package letsjava.pattern.builder;

public class ConcreteBuilder implements Builder {
	Part partA, partB, partC; 
	public void buildPartA() { 
		//这里是具体如何构建partA的代码 
		System.out.println("build A in ConcreteBuilder");
	}; 
	public void buildPartB() { 
		//这里是具体如何构建partB的代码 
		System.out.println("build B in ConcreteBuilder");
	}; 
	public void buildPartC() { 
		//这里是具体如何构建partB的代码 
		System.out.println("build C in ConcreteBuilder");
	}; 
	public Product getResult() {
		System.out.println("generate Product in ConcreteBuilder");
		return null; 
		//返回最后组装成品结果 
	};
	public static void main(String[] args){
		ConcreteBuilder builder = new ConcreteBuilder(); 
		Director director = new Director( builder ); 
		director.construct(); 
		Product product = builder.getResult();
	}
}

